import React, { Component } from 'react'
import {Switch,Route} from 'react-router-dom'
import {Layout} from 'antd';
import PrivateRouter from "../privateRouter";

// 自动化工程
import Components from "./components.js"
const {Content} = Layout;

export default class index extends Component {
  render() {
    return (
      <Switch>
      {
        Components.map(item => {
          return <PrivateRouter exact key={item.path} path={item.path} component={item.component} />
        })
      }
    </Switch>
   
    )
  }
}

    

